<template>
  <card>
    <template v-slot:title>总销售额</template>
    <template v-slot:header_num>￥126566</template>

    <template v-slot:chart>
      <div class="chart bottom">
        <div class="left">
          <span>周同比</span>
          <span>65%<i class="el-icon-caret-top i-top"></i></span>
        </div>
        <div class="right">
          <span>日同比</span>
          <span>11%<i class="el-icon-caret-bottom i-bottom"></i></span>
        </div>
      </div>
    </template>

    <template v-slot:footer_text>日销售额</template>
    <template v-slot:footer_num>￥12658</template>
  </card>
</template>

<script>
import Card from "./CardLayout";
export default {
  components: {
    Card,
  },
};
</script>

<style lang="less" scoped>
.chart {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}
.i-bottom {
  color: red;
  font-weight: bold;
}
.i-top {
  color: rgb(10, 194, 10);
  font-weight: bold;
}

.bottom {
  padding-top: 20px;
}
span {
  margin-right: 10px;
}
</style>